import { S } from '../../s';
import { IPSDEDRBarGroup } from './ipsdedrbar-group';
import { IPSLanguageRes } from '../../res/ipslanguage-res';
import { IPSSysImage } from '../../res/ipssys-image';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDEDRBarGroupImpl
  extends PSModelObjectImpl
  implements IPSDEDRBarGroup
{
  protected cappslanguageres: IPSLanguageRes;
  getCapPSLanguageRes(): IPSLanguageRes | null {
    return (
      this.cappslanguageres ||
      (this.cappslanguageres = this.fillObjectModel(
        S._276,
        this.M.getCapPSLanguageRes,
        S._2a8,
      ) as IPSLanguageRes)
    );
  }

  get caption(): string {
    return this.M.caption;
  }

  protected pssysimage: IPSSysImage;
  getPSSysImage(): IPSSysImage | null {
    return (
      this.pssysimage ||
      (this.pssysimage = this.fillObjectModel(
        S._27b,
        this.M.getPSSysImage,
        S._2ad,
      ) as IPSSysImage)
    );
  }

  get hidden(): boolean {
    return this.M.hidden;
  }
  get cls(): string {
    return 'PSDEDRBarGroupImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._9f) return true;
    return super.instanceof(cls);
  }
}
